package co.com.smart.persistence.entity.dto;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * The persistent class for the smart_maestro database table.
 * 
 */
@Entity
@Table(name="smart_maestro")
@NamedQuery(name="SmartMaestro.findAll", query="SELECT s FROM SmartMaestro s")
public class SmartMaestro implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="sm_scmaestro")
	private Integer smscmaestro;

	@Column(name="sm_comaestro")
	private String smcomaestro;
	
	@Column(name="sm_dsmaestro")
	private String smdsmaestro ;
	
	@Column(name="sm_fhretiro")
	private Date smfhretiro;
	
	@Column(name="sm_fhingreso")
	private Date smfhingreso;
	
	@Column(name="sm_fhmodificacion")
	private Date smfhmodificacion;
	
	@Column(name="sm_cousuario")
	private String smcousuario;
		
	//bi-directional many-to-one association to SmartDatosMaestro
	@OneToMany(cascade = CascadeType.ALL, mappedBy="smartMaestro", fetch = FetchType.LAZY )
	private List<SmartDatosMaestro> smartDatosMaestro;

	public Integer getSmscmaestro() {
		return smscmaestro;
	}

	public void setSmscmaestro(Integer smscmaestro) {
		this.smscmaestro = smscmaestro;
	}

	public String getSmcomaestro() {
		return smcomaestro;
	}

	public void setSmcomaestro(String smcomaestro) {
		this.smcomaestro = smcomaestro;
	}

	public String getSmdsmaestro() {
		return smdsmaestro;
	}

	public void setSmdsmaestro(String smdsmaestro) {
		this.smdsmaestro = smdsmaestro;
	}

	public Date getSmfhretiro() {
		return smfhretiro;
	}

	public void setSmfhretiro(Date smfhretiro) {
		this.smfhretiro = smfhretiro;
	}

	public Date getSmfhingreso() {
		return smfhingreso;
	}

	public void setSmfhingreso(Date smfhingreso) {
		this.smfhingreso = smfhingreso;
	}

	public Date getSmfhmodificacion() {
		return smfhmodificacion;
	}

	public void setSmfhmodificacion(Date smfhmodificacion) {
		this.smfhmodificacion = smfhmodificacion;
	}

	public String getSmcousuario() {
		return smcousuario;
	}

	public void setSmcousuario(String smcousuario) {
		this.smcousuario = smcousuario;
	}

	public List<SmartDatosMaestro> getSmartDatosMaestro() {
		return smartDatosMaestro;
	}

	public void setSmartDatosMaestro(List<SmartDatosMaestro> smartDatosMaestro) {
		this.smartDatosMaestro = smartDatosMaestro;
	}
}
